| import time |
| print("3...") |
| time.sleep(1) |
| time.sleep(1) |
| print("Go!") |
| print("2...") |
| print("1...") |
| time.sleep(1) |
| 1 | import time |
| 2 | print("3...") |
| 3 | time.sleep(1) |
| 4 | print("2...") |
| 5 | time.sleep(1) |
| 6 | print("1...") |
| 7 | time.sleep(1) |
| 8 | print("Go!") |
| replit.clear() |
| import time |
| print(" .") |
| replit.clear() |
| replit.clear() |
| time.sleep(1) |
| print(".") |
| print(" .") |
| print(" .") |
| import replit |
| time.sleep(1) |
| time.sleep(1) |
| replit.clear() |
| print(" .") |
| time.sleep(1) |
| 1 | import time |
| 2 | import replit |
| 3 | print(".") |
| 4 | time.sleep(1) |
| 5 | replit.clear() |
| 6 | print(" .") |
| 7 | time.sleep(1) |
| 8 | replit.clear() |
| 9 | print(" .") |
| 10 | time.sleep(1) |
| 11 | replit.clear() |
| 12 | print(" .") |
| 13 | time.sleep(1) |
| 14 | replit.clear() |
| 15 | print(" .") |
| print(y + "hello") |
| y = colored.fg("yellow") |
| import colored |
| 1 | import colored |
| 2 | y = colored.fg("yellow") |
| 3 | print(y + "hello") |
| import random |
| print(r) |
| r = random.randint(1,100) |
| 1 | import random |
| 2 | r = random.randint(1,100) |
| 3 | print(r) |
| import time |
| import random |
| print(r) |
| print(".") |
| time.sleep(1) |
| replit.clear() |
| r = random.randint(1,6) |
| replit.clear() |
| import replit |
| time.sleep(1) |
| time.sleep(1) |
| print(".") |
| print(".") |
| print("Your dice roll is:") |
| replit.clear() |
| time.sleep(1) |
| replit.clear() |
| 1 | import random |
| 2 | import time |
| 3 | import replit |
| 4 | print("Your dice roll is:") |
| 5 | time.sleep(1) |
| 6 | replit.clear() |
| 7 | print(".") |
| 8 | time.sleep(1) |
| 9 | replit.clear() |
| 10 | print(".") |
| 11 | time.sleep(1) |
| 12 | replit.clear() |
| 13 | print(".") |
| 14 | time.sleep(1) |
| 15 | replit.clear() |
| 16 | r = random.randint(1,6) |
| 17 | print(r) |
| r = str(r) |
| i = input() |
| print("Unlucky it was " + r) |
| print("Guess the dice roll...") |
| if r == i: |
| else: |
| print("Well done!") |
| i = int(i) |
| r = random.randint(1,6) |
|   r = str(r) |
| i = input() |
|   print("Unlucky it was " + r) |
| print("Guess the dice roll...") |
| if r == i: |
| else: |
|   print("Well done!") |
| i = int(i) |
| r = random.randint(1,6) |
| 1 | print("Guess the dice roll...") |
| 2 | i = input() |
| 3 | i = int(i) |
| 4 | r = random.randint(1,6) |
| 5 | if r == i: |
| 6 |   print("Well done!") |
| 7 | else: |
| 8 |   r = str(r) |
| 9 |   print("Unlucky it was " + r) |
| i1 = str(i1) |
| print("Name another sports team") |
| print("Name a sports team") |
| print(b + s1 + w + " vs" + r + s2) |
| import colored |
| r = colored.fg("red") |
| print("Final Score is:") |
| i2 = str(i2) |
| w = colored.fg("white") |
| s1 = input() |
| i1 = random.randint(1,4) |
| print(i1 + " vs" + i2) |
| b = colored.fg("blue") |
| s2 = input() |
| i2 = random.randint(1,4) |
| 1 | import colored |
| 2 | print("Name a sports team") |
| 3 | s1 = input() |
| 4 | print("Name another sports team") |
| 5 | s2 = input() |
| 6 | b = colored.fg("blue") |
| 7 | r = colored.fg("red") |
| 8 | w = colored.fg("white") |
| 9 | print(b + s1 + w + " vs" + r + s2) |
| 10 | i1 = random.randint(1,4) |
| 11 | i2 = random.randint(1,4) |
| 12 | i1 = str(i1) |
| 13 | i2 = str(i2) |
| 14 | print("Final Score is:") |
| 15 | print(i1 + " vs" + i2) |
| c = colored.fg("blue") |
| else: |
| if r == 1: |
| import colored |
| c = colored.fg("red") |
| print(c + "hello") |
| r = random.randint(1,4) |
| elif r == 3: |
| c = colored.fg("green") |
| import random |
| c = colored.fg("yellow") |
| elif r == 2: |
|     c = colored.fg("blue") |
| else: |
| if r == 1: |
| import colored |
|     c = colored.fg("red") |
| print(c + "hello") |
| r = random.randint(1,4) |
| elif r == 3: |
|     c = colored.fg("green") |
| import random |
|     c = colored.fg("yellow") |
| elif r == 2: |
| 1 | import colored |
| 2 | import random |
| 3 | r = random.randint(1,4) |
| 4 | if r == 1: |
| 5 |     c = colored.fg("red") |
| 6 | elif r == 2: |
| 7 |     c = colored.fg("blue") |
| 8 | elif r == 3: |
| 9 |     c = colored.fg("yellow") |
| 10 | else: |
| 11 |     c = colored.fg("green") |
| 12 | print(c + "hello") |
| r = random.randint(1,5) |
| print("Guess how long this wait is. The game will start in 2 seconds") |
| i = input() |
| i = int(i) |
| print("Time ended") |
| time.sleep(2) |
| print("Incorrect") |
| print("Correct!") |
| if i == r: |
| else: |
| import time |
| print("How long did it take?") |
| time.sleep(r) |
| print("From now!") |
| import random |
| r = random.randint(1,5) |
| print("Guess how long this wait is. The game will start in 2 seconds") |
| i = input() |
| i = int(i) |
| print("Time ended") |
| time.sleep(2) |
|     print("Incorrect") |
|     print("Correct!") |
| if i == r: |
| else: |
| import time |
| print("How long did it take?") |
| time.sleep(r) |
| print("From now!") |
| import random |
| 1 | import random |
| 2 | import time |
| 3 | |
| 4 | r = random.randint(1,5) |
| 5 | print("Guess how long this wait is. The game will start in 2 seconds") |
| 6 | time.sleep(2) |
| 7 | print("From now!") |
| 8 | time.sleep(r) |
| 9 | print("Time ended") |
| 10 | print("How long did it take?") |
| 11 | i = input() |
| 12 | i = int(i) |
| 13 | if i == r: |
| 14 |     print("Correct!") |
| 15 | else: |
| 16 |     print("Incorrect") |
| print(c + r) |
| else: |
| if r % 2 == 0: |
| c = colored.fg("red") |
| r = str(r) |
| r = str(r) |
| print(b + r) |
| r = random.randint(1,100) |
| import colored |
| import random |
| b = colored.fg("blue") |
|     print(c + r) |
| else: |
| if r % 2 == 0: |
|     c = colored.fg("red") |
|     r = str(r) |
|     r = str(r) |
|     print(b + r) |
| r = random.randint(1,100) |
| import colored |
| import random |
|     b = colored.fg("blue") |
| 1 | import random |
| 2 | import colored |
| 3 | r = random.randint(1,100) |
| 4 | if r % 2 == 0: |
| 5 |     b = colored.fg("blue") |
| 6 |     r = str(r) |
| 7 |     print(b + r) |
| 8 | else: |
| 9 |     c = colored.fg("red") |
| 10 |     r = str(r) |
| 11 |     print(c + r) |
| time.sleep(1) |
| print("You are having an ice walk in a forest") |
| print("There is a ladder and a lever") |
| time.sleep(1) |
| print("Do you enter? Y/N") |
| i = input() |
| print("The room youa re in starts filling up with water") |
| import time |
| exit() |
| i = i.lower() |
| print("Do you take the ladder or pull th lever? (lever/ladder)") |
| time.sleep(1) |
| print("You are able to swim up to the top and escape") |
| time.sleep(1) |
| time.sleep(1) |
| if s == "Y": |
| s = s.upper() |
| s = input() |
| print("The ladder breaks and you fall back down to the bottom.") |
| time.sleep(1) |
| print("You lose") |
| exit() |
| print("You see an old abandoned shed") |
| print("That was a boring choice") |
| print("Well done! You win!") |
| else: |
| time.sleep(1) |
| else: |
| if i == "ladder": |
| print("You fall into a trap door when entering the shed") |
| time.sleep(1) |
|         time.sleep(1) |
| print("You are having an ice walk in a forest") |
|     print("There is a ladder and a lever") |
|         time.sleep(1) |
| print("Do you enter? Y/N") |
|     i = input() |
|         print("The room youa re in starts filling up with water") |
| import time |
|         exit() |
|     i = i.lower() |
|     print("Do you take the ladder or pull th lever? (lever/ladder)") |
|     time.sleep(1) |
|         print("You are able to swim up to the top and escape") |
|         time.sleep(1) |
|         time.sleep(1) |
| if s == "Y": |
| s = s.upper() |
| s = input() |
|         print("The ladder breaks and you fall back down to the bottom.") |
| time.sleep(1) |
|         print("You lose") |
|     exit() |
| print("You see an old abandoned shed") |
|     print("That was a boring choice") |
|         print("Well done! You win!") |
| else: |
|     time.sleep(1) |
|     else: |
|     if i == "ladder": |
|     print("You fall into a trap door when entering the shed") |
| time.sleep(1) |
| 1 | import time |
| 2 | print("You are having an ice walk in a forest") |
| 3 | time.sleep(1) |
| 4 | print("You see an old abandoned shed") |
| 5 | time.sleep(1) |
| 6 | print("Do you enter? Y/N") |
| 7 | s = input() |
| 8 | s = s.upper() |
| 9 | if s == "Y": |
| 10 |     print("You fall into a trap door when entering the shed") |
| 11 |     time.sleep(1) |
| 12 |     print("There is a ladder and a lever") |
| 13 |     time.sleep(1) |
| 14 |     print("Do you take the ladder or pull th lever? (lever/ladder)") |
| 15 |     i = input() |
| 16 |     i = i.lower() |
| 17 |     if i == "ladder": |
| 18 |         print("The ladder breaks and you fall back down to the bottom.") |
| 19 |         time.sleep(1) |
| 20 |         print("You lose") |
| 21 |         time.sleep(1) |
| 22 |         exit() |
| 23 |     else: |
| 24 |         print("The room youa re in starts filling up with water") |
| 25 |         time.sleep(1) |
| 26 |         print("You are able to swim up to the top and escape") |
| 27 |         time.sleep(1) |
| 28 |         print("Well done! You win!") |
| 29 | else: |
| 30 |     print("That was a boring choice") |
| 31 |     exit() |
| 32 |      |
| yellow = colored.fg("yellow") |
| rest = i[1:] |
| print("Enter a word") |
| print(red + firstLetter + yellow + rest) |
| s = input() |
| firstLetter = i[0] |
| import colored |
| red = colored.fg("red") |
| 1 | import colored |
| 2 | |
| 3 | print("Enter a word") |
| 4 | s = input() |
| 5 | |
| 6 | red = colored.fg("red") |
| 7 | yellow = colored.fg("yellow") |
| 8 | |
| 9 | firstLetter = i[0] |
| 10 | rest = i[1:] |
| 11 | print(red + firstLetter + yellow + rest) |
| s = input() |
| middle = l//2 |
| print(blue + firstHalf + pink + lastHalf) |
| blue = colored.fg("blue") |
| print("Enter a sentence") |
| firstHalf = s[:middle] |
| import colored |
| l = len(s) |
| lastHalf = s[middle:] |
| pink = colored.fg("orchid_1") |
| 1 | import colored |
| 2 | |
| 3 | print("Enter a sentence") |
| 4 | s = input() |
| 5 | |
| 6 | blue = colored.fg("blue") |
| 7 | pink = colored.fg("orchid_1") |
| 8 | |
| 9 | l = len(s) |
| 10 | middle = l//2 |
| 11 | firstHalf = s[:middle] |
| 12 | lastHalf = s[middle:] |
| 13 | print(blue + firstHalf + pink + lastHalf) |
| s = s.replace("u",r+"u"+w) |
| s = s.replace("e",r+"e"+w) |
| s = s.replace("o",r+"o"+w) |
| print("Enter a sentence") |
| s = s.replace("i",r+"i"+w) |
| s = input() |
| s = s.replace("a",r+"a"+w) |
| r = colored.fg("red") |
| w = colored.fg("white") |
| 1 | print("Enter a sentence") |
| 2 | s = input() |
| 3 | |
| 4 | r = colored.fg("red") |
| 5 | w = colored.fg("white") |
| 6 | |
| 7 | s = s.replace("a",r+"a"+w) |
| 8 | s = s.replace("e",r+"e"+w) |
| 9 | s = s.replace("i",r+"i"+w) |
| 10 | s = s.replace("o",r+"o"+w) |
| 11 | s = s.replace("u",r+"u"+w) |
| if n % 2 == 0: |
| else: |
| whitebg = colored.bg("white") |
| print(" " + n + " ") |
| n = random.randint(1,36) |
| import colored |
| n = str(n) |
| if len(n) == 1: |
| color = colored.fg("black") |
| color = colored.fg("red") |
| n = color + n |
| print(" ") |
| print(whitebg + " ") |
| import random |
| n = " " + n |
| if n % 2 == 0: |
| else: |
| whitebg = colored.bg("white") |
| print(" " + n + " ") |
| n = random.randint(1,36) |
| import colored |
| n = str(n) |
| if len(n) == 1: |
|     color = colored.fg("black") |
|     color = colored.fg("red") |
| n = color + n |
| print(" ") |
| print(whitebg + " ") |
| import random |
|     n = " " + n |
| 1 | import random |
| 2 | import colored |
| 3 | |
| 4 | whitebg = colored.bg("white") |
| 5 | n = random.randint(1,36) |
| 6 | if n % 2 == 0: |
| 7 |     color = colored.fg("red") |
| 8 | else: |
| 9 |     color = colored.fg("black") |
| 10 | n = str(n) |
| 11 | if len(n) == 1: |
| 12 |     n = " " + n |
| 13 | n = color + n |
| 14 | print(whitebg + " ") |
| 15 | print(" " + n + " ") |
| 16 | print(" ") |
| elif r == 2 or r == 4: |
| else: |
| print(nnn) |
| print(nnn) |
| #Bottom Section |
| print(nnn) |
| elif r == 2 or r == 3: |
| print(nnn) |
| print(yny) |
| print(yny) |
| print(yny) |
| if r == 1 or r == 3 or r == 5: |
| yny = wbg + " " * 3 + bbg + " " * 3 + wbg + " " * 15 + bbg + " " * 3 + wbg + " " * 3 |
| ynn = wbg + " " * 3 + bbg + " " * 3 + wbg + " " * 21 |
| print(nnn) |
| else: |
| if r == 1: |
| print(nny) |
| #Top Section |
| nyn = wbg + " " * 12 + bbg + " " * 3 + wbg + " " * 12 |
| print(r) |
| r = random.randint(1,6) |
| print(nnn) |
| print(nyn) |
| wbg = colored.bg("white") |
| nny = wbg + " " * 21 + bbg + " " * 3 + wbg + " " * 3 |
| bbg = colored.bg("black") |
| elif r == 2 or r == 3: |
| import random |
| import colored |
| print(nnn) |
| #Middle Section |
| print(nnn) |
| print(nnn) |
| print(ynn) |
| nnn = wbg + " " * 27 |
| if r == 1: |
| else: |
| elif r == 2 or r == 4: |
| else: |
|     print(nnn) |
|     print(nnn) |
| #Bottom Section |
| print(nnn) |
| elif r == 2 or r == 3: |
| print(nnn) |
|     print(yny) |
|     print(yny) |
|     print(yny) |
| if r == 1 or r == 3 or r == 5: |
| yny = wbg + " " * 3 + bbg + " " * 3 + wbg + " " * 15 + bbg + " " * 3 + wbg + " " * 3 |
| ynn = wbg + " " * 3 + bbg + " " * 3 + wbg + " " * 21 |
|     print(nnn) |
| else: |
| if r == 1: |
|     print(nny) |
| #Top Section |
| nyn = wbg + " " * 12 + bbg + " " * 3 + wbg + " " * 12 |
| print(r) |
| r = random.randint(1,6) |
| print(nnn) |
|     print(nyn) |
| wbg = colored.bg("white") |
| nny = wbg + " " * 21 + bbg + " " * 3 + wbg + " " * 3 |
| bbg = colored.bg("black") |
| elif r == 2 or r == 3: |
| import random |
| import colored |
| print(nnn) |
| #Middle Section |
| print(nnn) |
| print(nnn) |
|     print(ynn) |
| nnn = wbg + " " * 27 |
| if r == 1: |
| else: |
| 1 | import colored |
| 2 | import random |
| 3 | |
| 4 | wbg = colored.bg("white") |
| 5 | bbg = colored.bg("black") |
| 6 | |
| 7 | nnn = wbg + " " * 27 |
| 8 | yny = wbg + " " * 3 + bbg + " " * 3 + wbg + " " * 15 + bbg + " " * 3 + wbg + " " * 3 |
| 9 | nyn = wbg + " " * 12 + bbg + " " * 3 + wbg + " " * 12 |
| 10 | ynn = wbg + " " * 3 + bbg + " " * 3 + wbg + " " * 21 |
| 11 | nny = wbg + " " * 21 + bbg + " " * 3 + wbg + " " * 3 |
| 12 | |
| 13 | r = random.randint(1,6) |
| 14 | print(r) |
| 15 | #Top Section |
| 16 | print(nnn) |
| 17 | if r == 1: |
| 18 |     print(nnn) |
| 19 | elif r == 2 or r == 3: |
| 20 |     print(ynn) |
| 21 | else: |
| 22 |     print(yny) |
| 23 | print(nnn) |
| 24 | #Middle Section |
| 25 | print(nnn) |
| 26 | if r == 1 or r == 3 or r == 5: |
| 27 |     print(nyn) |
| 28 | elif r == 2 or r == 4: |
| 29 |     print(nnn) |
| 30 | else: |
| 31 |     print(yny) |
| 32 | print(nnn) |
| 33 | #Bottom Section |
| 34 | print(nnn) |
| 35 | if r == 1: |
| 36 |     print(nnn) |
| 37 | elif r == 2 or r == 3: |
| 38 |     print(nny) |
| 39 | else: |
| 40 |     print(yny) |
| 41 | print(nnn) |